can we move the require out of this line? Also, it looks like we're grabbing the path and the subdomain, doesn't url already do this work for us? Why the regexp on the pathname?