implements the initial Multithread parser.