thread-safe map used