bunch of rails stuff