removed rails and added hack