tweaked message listener, skeleton for sender