support template directories