removed delay from isConnected()