add a patch helper