cleanup cap scripts