client structure set up