add support for forward proxy