some edits to debug messages