added  a check into data spec to work with magic nymbers and versions