main: don't ignore io.EOF
main: simplify "shell"
main: simplify output