moved status debug to another file