enable heartbeat and auto-reconnect