Refactor balancer, json conf