replaced xml-simple with xml2js