updated events

added decode and parsing