add a wait_for_connection method