fixed auto reconnect feature