add xslate-mode support