auto load rake task in rails and refactor a bit