fix API changes