change xtemplate command to local command