added debug script