Try to keep control of rootPath