refactoring task to rake.