implement heartbeat handling