simplify template dir