added reset debugging feature