adding in configuration to make it work better with heroku