Add console config; improve generator
Make console.proc simpler