add a better console logging wrapper