anchor.diff:    save_state(NewState),
     partition_list_into_ptable(Partitions, Table),
     {reply, {ok, NewState}, NewState};
  +	
  +handle_call({remove_node, Node}, _From, State = #membership{ptable=Table}) ->
  +  ets:delete_all_objects(Table),
  +  NewState = int_remove_node(Node, State),
  +  #membership{node=Node1,nodes=Nodes,partitions=Parts} = NewState,
  +  storage_manager:load(Nodes, Parts, int_partitions_for_node(Node1, NewState, all)),
  +  sync_manager:load(Nodes, Parts, int_partitions_for_node(Node1, NewState, all)),
  +  save_state(NewState),
  +  partition_list_into_ptable(Parts, Table),
  +  {reply, {ok, NewState}, NewState#membership{ptable=Table}};
   	
   handle_call({replica_nodes, Node}, _From, State) ->
     {reply, int_replica_nodes(Node, State), State};
  
positive.code:   case load_state(Node, Config) of
      {ok, Value = #membership{header=?VERSION,nodes=LoadedNodes}} ->
        error_logger:info_msg("loaded membership from disk~n", []),
        Value#membership{node=Node,nodes=lists:usort(Nodes ++ LoadedNodes),ptable=Table};
      {ok, {membership, C, P, Version, LoadedNodes, _}} ->
        ?infoMsg("trying to load a legacy format membership file~n"),
        #membership{node=Node,nodes=lists:usort(Nodes ++ LoadedNodes),partitions=P,version=Version,ptable=Table};
      _V ->
        create_initial_state(Node, Nodes, Config, Table)
    end.
  
  load_state(Node, #config{directory=Directory}) ->
  
negative.code:     node=Node,
      nodes=Nodes,
      gossip=Gossip}.
      
  int_remove_node(OldNode, #membership{node=Node,partitions=Partitions,version=Version,nodes=OldNodes,gossip=Gossip}) ->
    Nodes = lists:delete(OldNode, OldNodes),
    P = partitions:map_partitions(Partitions, Nodes),
    ?infoFmt("removing node ~p~n", [OldNode]),
    #membership{
      partitions=P,
      version = vector_clock:increment(pid_to_list(self()), Version),
      node=Node,
      nodes=Nodes,
      gossip=Gossip
    }.
    
  int_partitions_for_node(Node, State, master) ->
    Partitions = State#membership.partitions,
  