made a loop for reading on the server side. 2nd client still not working.