update api for new