anchor.diff:  
   %%% ######## {connected, client|server} ####
   
  -handle_event(_, {#ssh_msg_kexinit{},_} = Event, {connected,Role},  #state{ssh_params = Ssh0} = State0) ->
  +handle_event(_, {#ssh_msg_kexinit{},_} = Event, {connected,Role},  #data{ssh_params = Ssh0} = State0) ->
       {KeyInitMsg, SshPacket, Ssh} = ssh_transport:key_exchange_init_msg(Ssh0),
  -    State = State0#state{ssh_params = Ssh,
  +    State = State0#data{ssh_params = Ssh,
   			 key_exchange_init_msg = KeyInitMsg},
       send_bytes(SshPacket, State),
       {next_state, {kexinit,Role,renegotiate}, State, [{next_event, internal, Event}]};
   
   handle_event(_, #ssh_msg_disconnect{description=Desc} = Msg, StateName,
  -	     State0 = #state{connection_state = Connection0}) ->
  +	     State0 = #data{connection_state = Connection0}) ->
       {disconnect, _, {{replies, Replies}, _Connection}} =
   	ssh_connection:handle_msg(Msg, Connection0, role(StateName)),
       {Repls,State} = send_replies(Replies, State0),
  -    disconnect_fun(Desc, State#state.opts),
  +    disconnect_fun(Desc, State#data.opts),
       {stop_and_reply, {shutdown,Desc}, Repls, State};
   
   handle_event(_, #ssh_msg_ignore{}, StateName, State) ->
  
positive.code:     {next_state, StateName, State, [{reply,From,Info}]};
  
  handle_event({call,From}, {channel_info,ChannelId,Options}, StateName,
  	     State=#state{connection_state = #connection{channel_cache = Cache}}) ->
      case ssh_channel:cache_lookup(Cache, ChannelId) of
         #channel{} = Channel ->
  	    Info = ssh_channel_info(Options, Channel, []),
  
negative.code:     disconnect(DisconnectMsg, StateName, State);
  
  handle_event(info, {timeout, {_, From} = Request}, StateName,
  	    #data{connection_state = #connection{requests = Requests} = Connection} = State) ->
      case lists:member(Request, Requests) of
  	true ->
  	    {next_state, StateName,
  	     State#data{connection_state =
  			     Connection#connection{requests =
  						       lists:delete(Request, Requests)}},
  	     [{reply,From,{error,timeout}}]};
  