added support for PageArray as the third root page argument