add status debug to debug script