added debug flag (--debug) to separate some verbose stuff out