added heartbeat controller