print more errors
start fixing off-by-one
don't rebalance when closing
fix auto-commit