anchor.diff:      Prefetch :: boolean(), #state{}) ->
       NewRequests :: [{block(), fetch_ref()}].
   start_transfers(InitialBlocks, TransferId, Prefetch, State) ->
  -    {LocationDocs, FileCtx2} = file_ctx:get_file_location_docs(State#state.file_ctx),
  +    {_LocalDoc, FileCtx2} = file_ctx:get_or_create_local_file_location_doc(State#state.file_ctx),
  +    {LocationDocs, FileCtx3} = file_ctx:get_file_location_docs(FileCtx2),
       ProvidersAndBlocks = replica_finder:get_blocks_for_sync(LocationDocs, InitialBlocks),
       FileGuid = State#state.file_guid,
  -    SpaceId = file_ctx:get_space_id_const(FileCtx2),
  +    SpaceId = file_ctx:get_space_id_const(FileCtx3),
       DestStorageId = State#state.dest_storage_id,
       DestFileId = State#state.dest_file_id,
       Priority = case Prefetch of true -> high_priority; false ->
  
positive.code: init({_UserCtx, FileCtx}) ->
      fslogic_blocks:init_cache(),
      %% trigger creation of local file location
      {_LocalDoc, FileCtx2} = file_ctx:get_or_create_local_file_location_doc(FileCtx),
      FileGuid = file_ctx:get_guid_const(FileCtx2),
      SpaceId = file_ctx:get_space_id_const(FileCtx2),
      {DestStorageId, FileCtx3} = file_ctx:get_storage_id(FileCtx2),
      {DestFileId, FileCtx4} = file_ctx:get_storage_file_id(FileCtx3),
      {ok, #state{file_ctx = FileCtx4,
          file_guid = FileGuid,
          space_id = SpaceId,
          dest_storage_id = DestStorageId,
  
negative.code: %%--------------------------------------------------------------------
  handle_call({synchronize, FileCtx, Block, Prefetch, TransferId, Session}, From,
      #state{from_sessions = FS} = State0) ->
      State = State0#state{file_ctx = FileCtx},
      TransferId =/= undefined andalso (catch gproc:add_local_counter(TransferId, 1)),
      OverlappingInProgress = find_overlapping(Block, State),
  