upgrade to latest api