add use templates for directives