upgrade to xtmpl with maps for attributs