fixes in rpc example