clean up eof's