merged sessionfile and tempfile