configure template directory