heartbeat controller