implemented RequestEndComparator and tidied up RequestComparator