extract archive validation to separate function, rename binary validation