Adaptation for heroku