basic console io that knows about buffers