added support to APT_DAT v1000 by detecting the fmt version from the header (preserved legacy compat)