add thread event scheduler