add some template stuff