further changes to get app to run on Heroku