I should probably move this "get www root" stuff to a function