dir creation patch