now throws error when root dir doesn't exist