group flags working