almost complete the communication between server clientnt