polish debug messages