clean up diagnostic printing