added rails base structure