more efficient connectivity test