expose a handler for received message data