simplified logging. fixes #353