master basic logic
basic framework for loadbalancer