the xml parser is finally here, some refactoring has to be done though