add partitions fn to access partition/replica data