add debug (-d) command line option