added initLB and streaming code