added reading from xml file