added some additional features for logging messages