update for customAPI protocol