updates for latest api