implements simple queue, instead of using EventEmitter, to improve performance. fixed #3