modifies handshake behavior