event struct fields must be copied one by one in 4.0.0 version