better hxml validation (even without main, etc)