saving work. almost completed connection between server and client.