first working version of load balancing filter