change AVM(data) to AVM.from_file(data), and
AVM(header)->AVM.from_header(header)