some changes with temp files

*template files now are necessary