reverted to single threaded segmentation due to lack of thread satefy in cpp map