server and client talking to each other