debugged for heroku deployment