standardize template directory