waiting for socket connection before bootstraping