refactoring rake tasts in rake/