made probing for wifi more robust