updates to debugging script