$cfg->{verbose} must preceed functions that use it