   end
 
   defp check_cfg_fld_type(excg, fld, rows) do
-    header_rows = header_rows
+    header_rows = header_rows()
     fld_name = fld.name
     type = excg.type_map[fld.type]
     for {row, i} <- Enum.with_index(rows) do

  end

  defp check_cfg_fld_refrence(excg, fld, rows) do
    header_rows = header_rows
    fld_name = fld.name
    for {row, i} <- Enum.with_index(rows) do
      excg = %{excg | row_i: header_rows + i}

  end

  defp check_cfg_fld_order(excg, fld, rows) do
    header_rows = header_rows()
    fld_name = fld.name
    is_asc = Keyword.get(fld.opts, :order) == :asc
    Enum.reduce(Enum.with_index(rows), hd(rows)[fld_name], fn({row, i}, acc) ->
