add splitEvents() to DRY stuff out a bit