add base templates and template directory