make logger synchronous, fixes #12