implemented interactive console