wip: template type