add debug option to hide verbose output
more verbose errors in a few places