update API structure