update customAPI delegate with callback