prepare dir