make copy_group_data work a little better