reworked category rollups reading and writing