tmpdir replaced by tmpFolder