add support for rmn_s_r_p pattern