fixed the cl script and fixed some indentation issues