reverting tmp-file deletetion change