issue #123 better logging