adapted the error logging message system to a more general message logging system