fix jacobian to be internal method for scalar_minimize()