split event parsing by type into helper