fix console logging