added comment for template directory loading