made changes to support heroku deployment