added unpack_xml and modified netbuffer references