remove dependency on Xtmpl