     @queue = []
 
 
-exports.Tail = Tail
+exports.Tail = Tail
events= require("events")
fs =require('fs')

environment = process.env['NODE_ENV'] || 'development'


      if block.end > block.start
        stream = fs.createReadStream(@filename, {start:block.start, end:block.end-1, encoding:"utf-8"})
        stream.on 'error',(error) =>
          console.error("Tail error:#{error}")
          @emit('error', error)
        stream.on 'end',=>
          @internalDispatcher.emit("next") if @queue.length >= 1
