#163: xml loader refactor: WIP, compiles