extract some template bullcrap