add events parsing