#27 #28 add renegotiate function to server