added keyword tracking capability to StreamCollector