updated sync to reflect the API changes