using TMPDIR for soem scripts