cleaning output, handling report error detail