improved import performance; will now ignore erroneous attrs; can now handle a child/parent tree depth >2 inside elements