add config to disable auto reconnect