fixed an error and added a new rakefile task