refactoring to support multiple tcp proxies per server