implement Clone() functions, groups now working