add conection and link functions