use of tmp dir