ARQGRA-170: improved working with proxies