update for api changes