added wifi check case