   end
 
   defp import_items(conn, file) do
-    require Poison
-    require Timex
-    alias Exagg.Item
-    alias Exagg.Feed
     import Paratize.Pool
 
     json = File.read!(file.path) |> Poison.decode!

  end

  defp import_opml(conn, file) do
    alias Exagg.Folder
    alias Exagg.Feed
    alias XmlNode, as: Xml

    user_id = conn.assigns[:user]["id"]

            feed_id: feed.id,
          }

          {:ok, saved_item} = Repo.transaction fn ->
            existing = Repo.one(from i in Item, where: i.guid == ^item.guid and i.user_id == ^item.user_id and i.feed_id == ^item.feed_id)

            if existing != nil do
