       )
     end)
 
-    api_response
-    |> do_move
-    |> do_log
-  end
-
-  def do_move(response) do
-    update_in response.parsed_response, fn
+    api_response = update_in api_response.parsed_response, fn
       {:ok, map} ->
         cast_move(map)
       response ->
         response
     end
+
+    do_log(api_response)
   end
 
   def cast_move(map) do

      do: Logger.debug("[#{response.url}] #{inspect(e)}")

    response
  end

  def do_load(response) do
    update_in response.parsed_response, fn
      {:ok, map} ->
        cast_load(map)
      response ->
        response
    end
  end

  def cast_load(map) do

        error
      )
    end)

    api_response = update_in api_response.parsed_response, fn
      {:ok, map} ->
        cast_load(map)
      response ->
        response
    end

    do_log(api_response)
  end


