proper logic for detect ARCHIVE