adapt to ROOT6 API changes