restructure mathematica rpc server