add log level check so that --verbose option works