fixing issues with Heroku deployment