change the document root from hard-coded to arg