added missing connect function