implemented most of the manifest parsing (with stubs at the leaf nodes)