the indentparser library worked much better