several fixes to install of patches