implements changes for heroku deployment