improve copy/paste of groups