updating cap scripts