refining the client