working on client  network communication