add keepPatch option