clean output to log (close #11)