use mkdirp instead of mkdir