fix logging

Fixes #63