add some better console logging