control debug output better