debug mode update