changed logic on rake task to work on heroku, trying again