extracting the document root