debugging EOF status