open reconnect func