   ## Server Callbacks
 
   def init(:ok) do
+    # init the asset storage agent
+    Agent.start_link(fn ->
+      %{
+        block_cnt: 0,
+        PAprod: [],
+        PAtest: []
+       }
+    end, name: __MODULE__)
+    # init the Repo
     init(:retry, true)
   end
 

        :timer.sleep(1000)
        init(:retry, false)
    end
  end

  def handle_call({:list_assets, net}, _from, state) do
    {:reply, Map.fetch(state, net), state}
  end

  defp reload_assets(timeout) do

  Returns a list of registered assets.
  """
  def list_assets(net \\ :PAprod) do
    Agent.get(__MODULE__, &Map.fetch(&1, net))
  end

  @doc """
