applyPatches update