working on heartbeat timeout handler