changes to update scrpt