added setGroupKey api