updating client to handle responses