1.0.5 - handle more events beyond just the first two (forgot /g for global)