add some bullet-proofing when creating a group