debug logging and cpu monitor