updated cap scripts