getting file io to work well now