fixed the way xml files were being used