added support for getting groups