console logging includes errors