cleaner method to create std::console