prioritize environment variables for proxies