follow xtmpl API modifications