updates to rake tasks to be able to run on Heroku