add rudimentary console support