add ns, jacobian ns
some corrections
some corrections