added code to handle misformating of data messages