cow script almost working