initialize pthread objects (oh my gosh, I cannot believe I didn't do that!)