added check for heroku