Better (more complete) console shim