working toward debug mode