fixed API changes