adapting to heroku