add error checking to getRelativeJacobian