improved debugging subsystem