eliminated std::cerrs. app is working OK. todo: read previous templates
removing useless parts