http 500 fixes, reporting email done