updated to support heroku deployment