check before get connect