added a knob in XML that allows us to have an option of writing
metadatafile or not.