multi-threaded proxy server