added getFirstUrlSegment() to request class