set proxy settings through ProxyConfig struct
clean up.

Remove unnecessary println