for console simulation