fixing some rake tasks, adding an end