clean up patchmrf to support qSel structure.