figuring out rails etc