Modify: check connect state