require tmpdir, fixes #1