allow rootDir to be overriden