adapted to blas wrapper changes