update the API to latest API