       startMs = @parseTime(start)
       endMs = @parseTime(end)
       if not stratS<endS
-        alert 'Range is invalid'
+        console.error 'Range is invalid'
         return
       [startMs,endMs]
 

    console.log 'chunks',@chunks
    firstRange = @startByte.toString()+'-'+(parseInt(@startByte)+65535).toString()
    console.log 'firstRange',firstRange
    @fileStream = fs.createWriteStream(@filename);

    @getBytesRange firstRange


        buff.write body,'binary'
        body = buff
      
      result = {bytes:body,size:parseInt(res.headers['content-length'])}
      console.log 'received bytes',result.size,res.headers,result.len
      @emitter.emit 'data',result
      @saveBytes result,next
