new addConstraint syntax for specifying groups of constraints