added isWifiEnabled