added recovery from xml files