     return line.replace /(\n|\r)+$/, ""
 
   handleSave = (variables, data) ->
-    console.error "handleSave"
     file = variables.token
     if fs.existsSync file or fileIsWritable file
       try

    return true

  tcp.on 'data', (data) ->
    console.error "data: #{data}"
    handleData = () ->
      return unless strBuffer.length > 0
      if firstLine

        cmdObj.variables[name] = value
      [line, strBuffer] = readLine strBuffer
      return false unless line?

    switch cmdObj.cmd
      when "save" then handleSave(cmdObj.variables, cmdObj.data)
