add restapi for rebalancing