try to use afb_api_event_handler_add