adapt to new CO4 API