debug, optional run, output