recompile templates