add avro serialization block to readStatistics