fixed path and mkdir call