update console.log, add console.error
oops, fix process.exit
setMethods should not set enumerable; Object proto should be null; fix keys()