optimize Rakefile