duration API changes