i have problems with reading incoming data from a socket