changes to app to meet heroku demandas