update with latest api changes