auto reconnect func done