replaced mkdirp and wrench with fs.extra