split rake code into methods