bugfix log printing