fixes to reports and smtp