 
 
   queueFile: (file) =>
-    @sendCommand "add \"#{escape(file)}\"", doNothing, doNothing
-
-  play: =>
-    @sendCommand "play", doNothing, doNothing
-
-  pause: =>
-    @sendCommand "pause", doNothing, doNothing
-
-  next: =>
-    @sendCommand "next", doNothing, doNothing
-
-  prev: =>
-    @sendCommand "previous", doNothing, doNothing
+    @sendCommand "add \"#{escape(file)}\""
+
+  play: => @sendCommand "play"
+  pause: => @sendCommand "pause"
+  next: => @sendCommand "next"
+  prev: => @sendCommand "previous"
 
   playId: (track_id) =>
-    @sendCommand "playid #{track_id}", doNothing, doNothing
-
+    @sendCommand "playid #{escape(track_id)}"
+

      # notify listeners
      @raiseEvent 'onLibraryUpdate'

  addTracksToLibrary: (msg, mpdTracksHandler=->) =>
    # build list of tracks from msg
    mpd_tracks = {}
    current_file = null

      throw "obj already exists"
    list.splice pos, 0, obj

  noop = ->

  escape = (str) ->
    # replace all " with \"
    str.toString().replace /"/g, '\\"'

  createEventHandlers: =>
    registrarNames = [
