added support for data dictionary, ignore length and checksum tags, and last fix