fix script to read extra format in "fmt " chunk.