now returns number of selected events, size of output.
reorganizes things nicely.
fixes issue with content split.