apply all the patches