   @behaviour :gen_event
   @name __MODULE__
   @table __MODULE__
+  @data_key __MODULE__
+  @deleted_handlers_key __MODULE__.DeletedHandlers
   @counter_pos 1
   @update_counter_message {__MODULE__, :update_counter}
 


  def deleted_handlers do
    try do
      :ets.lookup_element(@table, :deleted_handlers, 2)
    rescue
      ArgumentError -> []
    end


  def handle_call({:deleted_handlers, new}, state) do
    old = deleted_handlers()
    update_data(@deleted_handlers_key, new)
    {:ok, old, state}
  end

