added group_mode property and GROUP_MODE_* constants