 
 
   def handle_call({:destroy_sessions, pid}, _from, state) do
-    if HashDict.has_key?(state, pid) do
+    if Map.has_key?(state, pid) do
       sessions = state[pid][:all_sessions]
       Enum.each sessions, fn({_session_name, session_id})->
         Hound.Session.destroy_session(session_id)
       end
-      state = HashDict.delete(state, pid)
+      state = Map.delete(state, pid)
     end
     {:reply, :ok, state}
   end



  def handle_call({:current_session, pid}, _from, state) do
    if HashDict.has_key?(state, pid) do
      {:reply, state[pid][:current], state}
    else
      {:reply, nil, state}

  use GenServer

  def start_link do
    state = %{}
    :gen_server.start_link({:local, __MODULE__}, __MODULE__, state, [])
  end

