add getGroupsList method