add event scheduler.cpp