template dir set up