treat output as a tmpdir