complete coset analysis script