       IO.puts "Make sure you point at a valid Serum project directory."
     else
       IO.puts "Rebuilding Website..."
-      :ets.new :build, [:set, :protected, :named_table]
+      {:ok, pid} = Agent.start_link fn -> %{} end, name: Global
 
       IO.puts "Reading project metadata `#{dir}serum.json`..."
       proj = File.read!("#{dir}serum.json")

      ["base", "list", "page", "post", "nav"]
      |> Enum.each(fn x ->
        tree = EEx.compile_file("#{dir}templates/#{x}.html.eex")
        putglobal "template_#{x}", tree
      end)

      File.mkdir_p! "#{dir}site/"

  end

  defp mkmeta(_, _, [], l), do: l
end
