index and template directories