updated for use with Heroku