fixed server ... added loop in doprocessing