adapt to Heroku environment