   def build_posts(dir, proj) do
     srcdir = "#{dir}posts/"
     dstdir = "#{dir}site/posts/"
-    template_post = getglobal "template_post"
-    template_list = getglobal "template_list"
+    template_post = Agent.get Global, &(Map.get &1, "template_post")
+    template_list = Agent.get Global, &(Map.get &1, "template_list")
 
     files = File.ls!(srcdir)
             |> Enum.filter(&(String.ends_with? &1, ".md"))

      IO.puts "Make sure you point at a valid Serum project directory."
    else
      IO.puts "Rebuilding Website..."
      :ets.new :build, [:set, :protected, :named_table]

      IO.puts "Reading project metadata `#{dir}serum.json`..."
      proj = File.read!("#{dir}serum.json")

  end

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