reopen when EOF