implement cdp2 api connector
fix cdp3 connector