adding support for tor proxying / control channel