modifyed the reader of the client: logging the message one by one after reading it