added logger to message creation