wip: pdu encoding/decoding