fixed and tested mkdir