added heroku functionality