added threading/forking functionality, only the stats process and the testMgr thread running. adding the remaining testThread functionality causes early termination, potentially a seg fault