some output cleanup