updated to work with Heroku deployd instance