changed logging policy. close #30