improvements on debug/monitor.