add get all groups

Do we need this special case here? We need to handle the "no more values" case later anyway.