updated conenct scrip