set connected state, prepared connection check