update patch generator