API changes in matrix package