Can work now, but still needs splits and csplit

so that the text() can run without any problem.
index bug