update for API changes