reopen when eof