--debug is made optional