fixes for heroku deployment