add proxy server support (#1476)