updated xstream api usage