code to handle malformed LRMI data