fixed temp dir creation