trying pthread
comments
omg i hate multithreading and I/O