added logging to message sender