fixed server completion detection, added lb wait