connect code