refactor how parent and collection elements are handled in manifest files