move rake task to rakefile