re-enabled writing the XML file to disk