templatedir is deprecated