modified rpcservice