added multithreading and NER