updated client to send request after receiving a response