merge
added logging in rebalance