refactored output_processor and scan_report