fixed toc handling and correctly flag unencrypted files
use size from mib header instead of data size