adds new logging wrapper, adds some better sync in core