rewrite unpack_dat/parseWord