made changes to work with heroku