adapted parser for productive usage (generate XML for compatibility, define working and output dir, some debug)