add thread alarm