added --verbose as a switch to turn on logging