fixed logging

fixes #6