fixed debug_logging