* fixed for t_task.total_events
* use startEvent and endEvent of files for event service