support of left|rightgroups parameter