clean up some output to terminal