simplify exceptions
remove hard-coded std::cout