add heartbeat reconnect