WIP converting event struct to object