debugging script