anchor.diff:  -spec get_file(req(), #state{}) -> {term(), req(), #state{}}.
   %% ====================================================================
   get_file(Req, #state{opts = Opts, attributes = #fileattributes{type = "REG"}} = State) ->
  -    DirCdmi = prepare_object_ans(State,case Opts of [] -> ?default_get_file_opts; _ -> Opts end),
  +    DirCdmi = prepare_object_ans(case Opts of [] -> ?default_get_file_opts; _ -> Opts end, State),
       case proplists:get_value(<<"value">>, DirCdmi) of
           {range, Range} ->
               Encoding = <<"base64">>, %todo send also utf-8 when possible
  
positive.code: -spec get_dir(req(), #state{}) -> {term(), req(), #state{}}.
  %% ====================================================================
  get_dir(Req, #state{opts = Opts, attributes = #fileattributes{type = "DIR"}} = State) ->
      DirCdmi = prepare_container_ans(State,case Opts of [] -> ?default_get_dir_opts; _ -> Opts end),
      Response = rest_utils:encode_to_json({struct, DirCdmi}),
      {Response, Req, State};
  get_dir(Req, State) -> %given uri points to file, return 404
  
negative.code: put_dir(Req, #state{filepath = Filepath, body = _Body} = State) ->
      case logical_files_manager:mkdir(Filepath) of
          ok -> %todo check given body
              Response = rest_utils:encode_to_json({struct, prepare_container_ans(?default_post_dir_opts,State)}),
              Req2 = cowboy_req:set_resp_body(Response,Req),
              {true,Req2,State};
          {error, dir_exists} ->
  