manage client as class