added acknowledgement to the handshake protocol