pthreaded clange removal