new debug script