added support for nested sets