step before adding template directories