made rootDir configurable