[PD] automated subpatch creation