updated groups script.