rewrite server network as class based, threaded server