added setContentLength during report generation + migration to new
format