add thread safe dictionary