updated server.serve to parse path with .startsWith instead of attempting to parse out the nth component of the path. Seems cleaner