add simple cmd-line flag to run in debug mode