updating client to implement  callback