debug is set after the argument checking