tmp - refactoring xml file loader