changed generation of tempfile list