issue #27 improve logging