adapt to new ApiConsumer