added basic connect functionnality