small improvement to patchmrf