cot script improved