added multithreaded treekin pipline