debugging for heroku and local