fixed the pb with dir creation