added EOFException, FileNotFoundException