removed pthread_join to eliminate SIGSEGV