encode e decode event_id