uppdated netconf connect function