handle_api_callback return value fixed