clean-up debug status handling