changes to server sends, and client recv