! move template_tmp_dir to settings