rework groups -- move logic into service, entities are now just poco