update handling of -v flag