added a bunch of patches from the patch manager