added proper logging facilities to -v, -vv, etc