only load and mkdirp once