update for unexpected EOF