newtonpatch