add initial work after fixing up the metridoc iterator api

still not functional yet