only use SOCKS proxy for external connections and some smaller bugfixes