update for adapter api changes