add flow diagram of client