fix and unify next_id for request, chained request and batch