int8 serialization