anchor.diff:  
   convert_to_remote(Node, #metric_file{handler={local, Pid}}=MF, Ms) ->
       Handler = {remote, node(), Pid},
  -    V0 = MF#metric_file{handler=Handler},
  -    orddict:store(Node, V0, Ms);
  +    Metric = MF#metric_file{handler=Handler},
  +    orddict:store(Node, Metric, Ms);
   
   convert_to_remote(_Node, _MetricFile, Metrics) ->
       Metrics.
  
positive.code:     Ms0 = orddict:fold(fun convert_to_remote/3, orddict:new(), Metrics),
      Ds0 = orddict:fold(fun(K, V, Ds) ->
                                 V0 = prepare_metrics_for_remote(V),
                                 case orddict:is_empty(V0#metric_dir.metrics) of
                                     false -> orddict:store(K, V0, Ds);
                                     true -> Ds
                                 end
  
negative.code:     ].
  
  update_or_insert_metric_test_() ->
      EmptyDir = ?EMPTY_METRIC_DIR,
      Metric = #metric_file{name= <<"test">>},
      Exp1 = #metric_dir{name= <<"bar">>, dirs=[], metrics=orddict:from_list([{<<"test">>, Metric}])},
      Exp2 = #metric_dir{name= <<"foo">>, dirs=orddict:from_list([{<<"bar">>, Exp1}]), metrics=[]},
  