enable_threadsafe