Bugfixes and tests on client side
bugfixes on dynamic group building
fixing dynamic group creation bug