correcting rakefile and template