fixing to nDivision in build header.
build routine for XF format
channel grep tool