catching error on heroku