add thread monitoring process