generalize VEVENT/VTODO handling