replaced multiprocess hack with TCP multiplexer