switching to isConnected flag