WIP
fixed dup groups, now working