added support for root arrays