refactor config for heroku