add a connect method