for patches script