handles improperly formatted messages