fix schema names, update resetbalance robustness