update to latest api