more fully working scripts Kappa