implement and document rematch API