simplify and fix group lookups

git-svn-id: svn+ssh://organicdesign.co.nz/bitgroup@1065 5e2f9ad9-d71a-4c5e-ba50-a8a02cc83e87