added templated directive