add pthreads