clean and resolved newline bug on ctrl c