improvements for groups api