updated wait for incoming on connect condition
polling implemented