fix structure names in file io