Adapt to heroku