indexes now return arrays and added getChildrenByIndex