made history scanning threadsafe and