add option for onlytemplate