remove dependency on NumericFuns and NumericExtensions