add thread lock