add xml_reader support