check for heartbeat only if heartneat is enabled