adding the correct dir for template files