fixed group security bug
more robust
fixed group security bug