add write buffer for message sent