wip: metadata

#### TODO

- [ ] hook up to index
scope selectors