now debaug always gets writeen in debug mode