refact with simple_console