clean up logging and reporting