added get_tmpdir()