add console, terminal utilities, and some tests