added connection waiting