apply patches to the new version