add readfileheader and fnameparse