change handshake sequence [ci skip]