renamed 'rootdir'