prevent errors with heroku