do removing tmp dir out of jmax loop