improving debug messages