updating to generate report in background process