write to os.tempdir()