adding debug output to the messagemodel