update api callbacks