switched debug back to true because 500 error emails stopped coming but i don't know why