support for sender's onMessage