replace patches for repos