refactoring the Rakefile