improved serialization of beer