fixes for running on heroku