fixed stream to use rpc-xml method