int for group checks instead of string

micro optimization
GroupId improvements, Const correctness
better groupId syntax