tweaks to file io