simple isConnected chekc