anchor.diff:        {shutdown, Req, State}
     end;
   
  -websocket_handle(Data, Req, State) -> 
  +websocket_handle(Data, Req, State) ->
     lager:info("Unknown request ~p", [Data]),
     {ok, Req, State}.
   
  
positive.code: 
  resolve(Embed, Resolver, Auth) ->
    case pulsedb_embed_cache:read(Embed) of
      {ok, Value} -> 
        Value;
      _ -> 
        Result = try resolve_embed(Embed, Resolver) of
          {ok, Resolved} ->
            try decrypt_embed(Resolved, Auth)
            catch C:E -> {error, {C,E}}
            end;
          Other -> 
            Other
        catch
          C:E -> {error, {C,E}}
  
negative.code:       end;
      {deny, Message} ->
        cowboy_req:reply(403, headers(json), jsx:encode([{error, Message}]), Req);
      {not_found, Message} ->
        cowboy_req:reply(404, headers(json), jsx:encode([{error, Message}]), Req);
      {error, Message} ->
        lager:warning("embed resolving error ~p", [Message]),
        cowboy_req:reply(500, headers(json), jsx:encode([{error, Message}]), Req)
    end,
  