updated to deal with old gsl