modefied debug