 	"""
 	def call(server, method, params) do
 		Logger.debug("Calling #{method}(#{inspect params})")
-		GenServer.call(server, {:call, %{ method: method, params: params}})
+		GenServer.call(server.pid, {:call, %{ method: method, params: params}})
 	end
 
 	def stop(server) do
-		GenServer.stop(server)
+		GenServer.stop(server.pid)
 	end
 
 	## server implementation


defmodule Serverboards.IoCmd do
	use GenServer

	@doc ~S"""
	Runs a command (to properly shlex), and returns the handler to be able to


	"""
	def start_link(cmd, args \\ [], cmdopts \\ [], opts \\ []) do
		{:ok, pid} = GenServer.start_link(__MODULE__, {cmd, args, cmdopts}, opts)
		{:ok, %Serverboards.IoCmd{ pid: pid } }
	end

	def init({cmd, args, cmdopts}) do
		cmdopts = cmdopts ++ [:stream, :line, :use_stdio, args: args]
		port = Port.open({:spawn_executable, cmd}, cmdopts)
		Logger.debug("Starting command #{cmd} at port #{inspect port}")
		Port.connect(port, self())

		state=%{
