update to the latest api