event spec and data format