add safe publish in concurrency