tweaks to monitor and CPU code