updated xml file reading