updated auxiliary file io functions