anchor.diff:  on_active({gossip2_trigger, TriggerInterval, {gossip2_trigger}}=Msg, State) ->
       msg_queue_send(State),
       log:log(debug, "[ Gossip ] Triggered: ~w", [Msg]),
  -    {TriggerState, CBModules} = get_trigger_group(TriggerInterval, State),
  +    {TriggerState, CBModules} = state_get({trigger_group, TriggerInterval}, State),
       _ = [
           begin
  -                case get_cycle_status(CBModule, State) of
  +                case state_get(cycle_status, CBModule, State) of
                       inactive ->
                           log:log(debug, "[ Gossip ] Module ~w got triggered", [CBModule]),
                           log:log(?SHOW, "[ Gossip ] Cycle: ~w, Round: ~w",
  -                            [get_cycles(CBModule, State), get_round(CBModule, State)]),
  +                            [state_get(cycles, CBModule, State), state_get(round, CBModule, State)]),
   
                           % set cycle status to active
  -                        set_cycle_status(active, CBModule, State),
  +                        state_set(cycle_status, active, CBModule, State),
   
                           % reset exch_data
  -                        set_exch_data({undefined, undefined}, CBModule, State),
  +                        state_set(exch_data, {undefined, undefined}, CBModule, State),
   
                           % request node (by the cb module or the bh module)
                           case cb_call(select_node, [], Msg, CBModule, State) of
  
positive.code: 
  
  on_active({p2p_exch_reply, CBModule, SourcePid, QData, OtherRound}=Msg, State) ->
      _ = case state_get({CBModule, cb_status}, State) of
          uninit -> msg_queue_add(Msg, State);
          init ->
              log:log(debug, "[ Gossip ] p2p_exch_reply, CBModule: ~w, QData ~w",
  
negative.code:     {ok, CBState} = CBModule:init(),
  
      % add state ob CBModule to state
      state_set(cb_state, CBState, CBModule, State),
  
      % set cb_status to init
      state_set(cb_status, init, CBModule, State),
  
      % notify cb module about leader state
      MyRange = state_get(range, State),
      LeaderMsg = case is_leader(MyRange) of
          true -> {is_leader, MyRange};
          false -> {no_leader, MyRange}
  