trying to remove calls to std::cout
and cerr
added some stuff