 
 class Uploader extends EventEmitter
   #FIXME: 0 records?
-  constructor: ({accessKey, secretKey, region, stream, objectName, objectParams, bucket, partSize, maxBufferSize}, @cb) ->
+  constructor: ({accessKey, secretKey, region, stream, objectName, objectParams, bucket, partSize, maxBufferSize, verbose}, @cb) ->
     super()
+
     aws.config.update
       accessKeyId:     accessKey
       secretAccessKey: secretKey

    @partNumber      = 1
    @parts           = []
    @uploadedParts   = {}
    @partSize        = partSize or 5242880 # 5MB
    @currentChunk    = new Buffer 0


    @on 'error', (err) => @failed = true

    @handleStream stream
    process.nextTick => @initiateTransfer()



      @emit 'initiated', @uploadId


  setStreamHandlers: (stream) ->
    stream.on 'data', (chunk) =>
      if typeof(chunk) is 'string' then chunk = new Buffer chunk, 'utf-8'
      @currentChunk = Buffer.concat [@currentChunk, chunk]
