fixed groups bug
finished server side working on client side