simplified handshake states.