adding support for smart_proxies