set a connected flag