   end
 
   def unregister(name) do
-    GenServer.cast(__MODULE__, name)
+    GenServer.cast(__MODULE__, {:unregister, name})
     :ok
   end
 

    {:noreply, Map.put(probes, name, probe)}
  end

  def handle_cast(name, probes) do
    {:noreply, Map.delete(probes, name)}
  end


  def register(name, probe) do
    if genserver_running?() do
      if is_function(probe) do
        GenServer.cast(__MODULE__, {:register, {name, probe}})
        :ok
      else
        Logger.debug(fn ->
