update to API changes