add template dir to config