transplant base for new parser from XLang