threadpool test + rag's fix