set up rails