add thread_safe dep