rename debug -> output