anchor.diff:  
   
   %% @private
  -register(#state{nkport=Shared, servers=Servers}=State) ->
  -    #nkport{transp=Transp, listen_ip=Ip, listen_port=Port} = Shared,
  -    Filters = [Filter || {Filter, _Ref} <- Servers],
  -    nklib_proc:put({?MODULE, Transp, Ip, Port}, Filters),
  +register(#state{nkport=Shared, filters=Filters}=State) ->
  +    #nkport{listen_ip=Ip, listen_port=Port} = Shared,
  +    lager:warning("REG: ~p", [Filters]),
  +
  +    nklib_proc:put({?MODULE, Ip, Port}, Filters),
       State.
   
   
   %% @private
   %% Put long paths before short paths
   sort_filters(Filters) ->
  -    Filters1 = [
  -        {nkpacket_util:norm_path(maps:get(path, Filter, any)), Filter, Ref}
  -        || {Filter, Ref} <- Filters
  -    ],
  -    Filters2 = [
  -        {Filter#{path_list=>Paths}, Ref} || {Paths, Filter, Ref} <- lists:sort(Filters1)
  -    ],
  -    lists:reverse(Filters2).
  +    lists:reverse(lists:keysort(#filter.paths, Filters)).
   
   
   %% @private
  
positive.code:                 ],
                  ?MODULE,
                  CowboyOpts2),
              nklib_proc:put(?MODULE, {Transp, ListenIp, LocalPort}),
              ListenRef = monitor(process, ListenPid),
              State = #state{
                  nkport = Shared,
                  ranch_id = RanchId,
                  ranch_pid = RanchPid,
                  servers = sort_filters([{Filter, ListenRef}])
              },
              {ok, register(State)};
          {error, Error} ->
  
negative.code:     when Req::cowboy_req:req(), Env::cowboy_middleware:env().
  
  execute(Req, Env) ->
      {Ip, Port} = nklib_util:get_value(?MODULE, Env),
      Filters = get_filters(Ip, Port),
      lager:warning("FILTERS: ~p", [Filters]),
      execute(Filters, Req, Env).
  
  
  %% @private 
  -spec execute([#filter{}], cowboy_req:req(), cowboy_middleware:env()) ->
      term().
  
  execute([], Req, _Env) ->
      lager:notice("NkPACKET Cowboy: page not found"),
      {stop, reply(404, Req)};
  
  execute([Filter|Rest], Req, Env) ->
      #filter{
          id = Id,
          module = Module,
          transp = _Transp,
          host = Host,
          paths = Paths,
          ws_proto = WsProto
      } = Filter,
      lager:warning("HD: ~p", [cowboy_req:headers(Req)]),
      ReqHost = cowboy_req:host(Req),
      ReqPaths = nkpacket_util:norm_path(cowboy_req:path(Req)),
      ReqWsProto = case cowboy_req:parse_header(?WS_PROTO_HD, Req, []) of
  