added error handling stub for invalid message data