improved console logging