initialise connect variable