clean up rpc.call