api changed to new data model