threadsafe param