add function for ConsoleController