wrote handshake portion of the parser consumer