       if temp.status!='ok'
         console.log 'error',temp.reason
         return
-
-      console.log temp
 
       @formats = {}
       for itag,i in temp.itag

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

    @getBytesRange firstRange


    if obj.filename?
      @filename = obj.filename
    else
      console.error 'no filename specified'
      return

    if !obj.itag?
      console.error 'No format specified'
      return

    @itag = obj.itag
    if !@formats[@itag]?
      console.error 'Wrong format specified'
      return

    @startByte = @timeToBytes(@start)
