added heroku logic