Change the tree structure for event in the list command.

Instead of giving the type of the event as root parameter for each event, every event is of type "event" and have a "type" field which give the type of the event.