make sure you set heartbeat above timeout