clean output_manager.cpp (more compact code)