started fixing sr in test branch
more work
more pruning
not done yet. but compiles.
works for idbs, fails for edbs
2 things left to do
progress
tests passed. moar tests?