made debug=true to see more information about 500 error on heroku