reduce scope of patchExtend