added isConnected to client