better invalid message warning