separate parsing and packing of rdata