updating for unique tmp dir per input file