yet another change to tmpdir. this one seems to work well.