starting to refactor
more refactoring - use Hxml parser code in the build tool