improved DBPF header parsing