added bytestring serialisation