added functions to ConnectEvent