better logging and timer for heartbeatcheck