added rails stuff