the common law doctrine of necessity