fixed detecting proxies