add support for proxy