small refactor for rake file