console_spec, and some console refactoring