modified to fit heroku