updates to latest api