adding jacobian stuff
merge out