modification to adapt to heroku