update for api base struct