pseudocode loadbalancer