using is_socks instead of proxy type