added logic xml_path