replaced some config->verbosity ifs with func