working with the client