   end
 
   def handle_call(:remote_references, _from, state) do
-    {compile, runtime} = partition(Enum.to_list(state.references), [], [])
-    {:reply, {compile, Map.keys(state.structs), runtime}, state}
+    {compile, runtime} = partition(:maps.to_list(state.references), [], [])
+    {:reply, {compile, :maps.keys(state.structs), runtime}, state}
   end
 
   def handle_call(:remote_dispatches, _from, state) do

  end

  def handle_call({:read_cache, key}, _from, %{cache: cache} = state) do
    {:reply, Map.fetch!(cache, key), state}
  end

  def handle_cast({:write_cache, key, value}, %{cache: cache} = state) do
    {:noreply, Map.put(state, :cache, Map.put(cache, key, value))}
  end

  def handle_cast({:remote_reference, module, mode}, state) do

  end

  def handle_cast({:remote_struct, module, line}, state) do
    state = add_remote_dispatch(state, module, {:__struct__, 1}, line, :compile)
    structs = :maps.put(module, true, state.structs)
    {:noreply, %{state | structs: structs}}
  end

  def handle_cast({:remote_dispatch, module, fa, line, mode}, state) do
