cleaning debug messages