make lib "thread-safe"