added basic console functionality