update balancer.rb