check rails