update ztemplate