oops lost the main
centalize the report generation