added support for hierarchical resources in custom paged endpoints