split out the connect action