changed send buffer to server