file io now works