ongoing development on replacing pthreads