added debug script.