simplify createing rpc threads